import { PIC_URL } from './../../../providers/Config';
import { Component, Injector } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { BasePage } from '../../basePage';

/**
 * Generated class for the LookImgPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-look-img',
  templateUrl: 'look-img.html',
})
export class LookImgPage extends BasePage{
  url: string = "";
  picrooturl = '';//图片服务器地址

  constructor(injector:Injector) {
    super(injector);
    this.picrooturl = PIC_URL;
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad LookImgPage');
    this.url = this.navParams.get("imgurl");
    console.log(this.url);
  }
  dismiss(){
    let data = { 'foo': 'bar' };
    this.viewCtrl.dismiss(data);
  }
}
